# _*_ coding: UTF-8 _*_
# @Time     : 2021/10/22 16:53
# @Author   : Gong Yangyi
# @Site     : http://www.hzdledu.cn/
# @File     : c6s2_元祖.py
# @Software : PyCharm

# 元祖Tuple
# tuple的定义
tuple1 = (1, 1.1, True, '汇智动力')

#操作元祖的函数
tup2=(1,0,99,-1)
print(len(tup2))
print(max(tup2))
print(min(tup2))

#元祖的增、删、改、查
#元祖不能增删改
tup2=(1,0,99,-1)
#tup2[0]=10

#元祖的查询遍历
for i in tup2:
    print(i,end=',')

print()
for i in  range(len(tup2)):
    print(f'{i}:{tup2[i]}')